class Person {
  String? name;
  int? age;
  String? job;

  //公有属性
  String? food;
//公有方法
  void eat1() {
    print("${this.name}正在外面吃");
  }

  //私有方法
  // ignore: unused_element
  void _eat() {
    print("${this.name}正在吃饭");
  }
}
